package com.bugull.farm.core.store;

import com.bugull.mongo.SimpleEntity;
import com.bugull.mongo.annotations.EnsureIndex;
import com.bugull.mongo.annotations.Entity;

import java.util.Date;

/**
 * Created by leesama on 2016/11/14.
 */
@Entity
@EnsureIndex("{createTime:1, expireAfterSeconds:604800}")
public class OnOffLineEventHistory extends SimpleEntity {

    private Date createTime ;
    private String eventType;
    private String macAddress;

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getEventType() {
        return eventType;
    }

    public void setEventType(String eventType) {
        this.eventType = eventType;
    }

    public String getMacAddress() {
        return macAddress;
    }

    public void setMacAddress(String macAddress) {
        this.macAddress = macAddress;
    }
}
